// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import ElementUI from 'element-ui'
import '../static/css/element-ui/element-#8727AA/index.css'
import App from './App'
import store from './store'
import './permission' // permission control
import permission from '@/directive/permission/index.js' // 权限判断指令


Vue.config.productionTip = false

Vue.use(ElementUI)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store: store,
  components: { App },// vue1.0写法
  template: '<App/>'// vue1.0写法,搭配component使用
  // render: h => h(App)//vue2.0写法，实则是将app的页面进行渲染到#app

})

